/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Controlador;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author javier
 */
public class HiloLector extends Thread{
    private String PlacaALeer;
    private String Ruta ="algo";
    public HiloLector(){
    }
    
    public void run(){
        File  archivo = new File(PlacaALeer);
        try {
            FileReader lector = new FileReader(archivo);
            BufferedReader flujo = new BufferedReader(lector);
            String linea;
            while ( (linea = flujo.readLine())!=null){
                //System.out.println(PlacaALeer+" : "+linea);
            }
        } catch (FileNotFoundException ex) {
            Logger.getLogger(HiloLector.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
                Logger.getLogger(HiloLector.class.getName()).log(Level.SEVERE, null, ex);
        }
        
    }
    
    public void SetPLacaALeer(String placa){
        this.PlacaALeer = placa; //Ruta+placa+".txt";
    }
}
